# from defaults.dev import DevDefaultConfig
# import redis
#
#
# class MyRedis():
#     def __init__(self):
#         self.rds = redis.Redis(host=DevDefaultConfig.REDIS_HOST ,port=DevDefaultConfig.REDIS_POST,db=DevDefaultConfig.REDIS_DB,password=DevDefaultConfig.REDIS_PASSWORD)
#
#     def set_redis(self, data, expire, value):
#         self.rds.setex("data_%s"%data, expire, value)
#
#     def get_redis(self, data):
#         rds = self.rds.get("data_%s"%data)
#         return rds


























